package com.fenghongzhang.module_main.repository

import com.fenghongzhang.module_main.api.MallApiService
import com.fenghongzhang.module_main.model.CommonSimpleBody
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

class MallRepository @Inject constructor(){
    @Inject
    lateinit var mallApiService: MallApiService

    fun cmallAdInfo(body: CommonSimpleBody) = flow {
        emit(mallApiService.cmallAdInfo(body.toRequestBody()))
    }


}